package router

import (
	"github.com/gin-gonic/gin"
	"owl/middleware"
	"resume/app/controller/music"
	"resume/bootstrap"
	"resume/public"
)

func init() {

	err := bootstrap.Stage.Invoke(func(r *gin.Engine, controller *music.ResumeController) {
		r.Use(middleware.Front("/", middleware.EmbedFolder(public.DistFs, "dist")))
	})
	if err != nil {
		panic(err)
	}
}
